package nl.sogyo.objectvisualisatie.data;

import com.sun.jdi.Method;

/**
 * 
 * @author Ben
 *
 */
public class MethodInfo {
	
	private ObjectInfo fromObject;	// Object form which the method is called
	private ObjectInfo onObject;	// Object on which the method is called
	private Method method;			// Method itself
	
	/**
	 * Constructor
	 * @param fromObject
	 * @param method
	 * @param onObject
	 */
	public MethodInfo(ObjectInfo fromObject, Method method, ObjectInfo onObject)
	{
		this.fromObject = fromObject;
		this.method = method;
		this.onObject = onObject;
	}
	
	public ObjectInfo getFromObject() {
		return fromObject;
	}

	public void setFromObject(ObjectInfo fromObject) {
		this.fromObject = fromObject;
	}

	public ObjectInfo getOnObject() {
		return onObject;
	}

	public void setOnObject(ObjectInfo atObject) {
		this.onObject = atObject;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}
}
